package com.lidongpeng;

import com.lidongpeng.pojo.Hello;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class test {
    public static void main(String[] args) {
        /*ApplicationContext applicationContext=new ClassPathXmlApplicationContext("classpath:/bean.xml");
        Hello h1=(Hello) applicationContext.getBean("hhh");
        h1.say();*/
        Hello s2=new Hello();
//        System.out.println(s2);
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("classpath:/bean.xml");
        Hello h1=(Hello) applicationContext.getBean("sss");
        System.out.println(h1.getS1());

    }
}
